import request from '@/utils/request'

// 删除合同到账数据
export function deleteProjectContrac(params) {
  return request({
    url: '/projectContrac/delete',
    method: 'POST',
    params
  })
}

// 合同到账管理搜索，分页
export function getProjectContracList(params) {
  return request({
    url: '/projectContrac/list',
    method: 'POST',
    params
  })
}

// 添加合同到账数据
export function addProjectContrac(data) {
  return request({
    url: '/projectContrac/add',
    method: 'POST',
    data
  })
}

// 查询合同项目的名称
export function selectProjectName(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'post',
    params
  })
}

// 查询团队名称
export function selectTeam(params) {
  return request({
    url: '/projectContrac/team',
    method: 'POST',
    params
  })
}

// 查詢合同的单条数据
export function selectProjectContrac(params) {
  return request({
    url: '/projectContrac/load',
    method: 'POST',
    params
  })
}

// 修改合同到账数据
export function updateProjectContrac(data) {
  return request({
    url: '/projectContrac/update',
    method: 'POST',
    data
  })
}

// 查詢收款人（也就是经办人）
export function selectOperator(params) {
  return request({
    url: '/projectContrac/operator',
    method: 'POST',
    params
  })
}

// 到账详情 根据projectId查询
export function getDetails(params) {
  return request({
    url: '/project/arrivalDetails',
    method: 'POST',
    params
  })
}

//
export function getBillReceivedInfo(params) {
  return request({
    url: '/projectContrac/getBillReceivedInfo',
    method: 'POST',
    params
  })
}

